/**
 *
 */
package br.com.werp.regras.tesouraria.visao.decorador;

import br.com.werp.regras.geral.vos.tabelas.Grau;

import org.displaytag.decorator.TableDecorator;


/**
 * @author Italo Leitao
 *
 *21/11/2006
 */
public class GrauDependenciaDecorator extends TableDecorator {
    public String getGrau_descricao() {
        Grau grau = (Grau) getCurrentRowObject();

        return grau.getGrau_descricao();
    }

    public String getGrau_cod() {
        Grau grau = (Grau) getCurrentRowObject();

        return "<a onclick=\"preencherGrau(" + grau.getGrau_id() + ",'" +
        grau.getGrau_descricao() + "')\"  href=\"\" >" + grau.getGrau_id() +
        "</a>";
    }
}
